﻿@{
    Layout = "~/Views/Shared/_Iframe.cshtml";
}
@using MvcApplication.Entity
@model UserInfo
<div class="am-g" style="margin-top: 20px;">
    <div class="am-u-md-8 am-u-sm-centered">
        <form class="am-form" id="editUserInfo">
            <input name="id" type="hidden" value="@Model.ID">
            <div class="am-form-group">
                <input name="email" type="email" placeholder="用户邮箱" required value="@Model.Email" disabled>
            </div>
            <div class="am-form-group">
                <input name="fullName" type="text" placeholder="用户姓名" minlength="2" maxlength="5" required value="@Model.FullName">
            </div>
            <div class="am-form-group">
                <select data-am-selected="{btnsize: 'sm'}" name="gender">
                    @foreach (var value in Enum.GetValues(typeof(UserGender)))
                    {
                        <option value="@((int)value)" @((int)Model.Gender == (int)value ? "selected" : "")>@value</option>
                    }
                </select>
            </div>
            <div id="alert" style="padding: 0 0 20px 0; visibility: hidden; color: red;">
                123333
            </div>
            <button type="submit" class="am-btn am-btn-primary am-btn-block">保存</button>
        </form>
    </div>
</div>
<!--新建用户表单 END-->

@Scripts.Render("~/Content/js/member/edit.js")